# 需要安装：pip install pyautogui
import webbrowser
import time
import pyautogui  

def open_website_fullscreen(url):
    # 打开网站
    webbrowser.open(url)
    
    # 等待浏览器启动
    time.sleep(3)
    
    # 模拟按下F11进入全屏
    pyautogui.press('f11')
    
    # 保持一段时间
    time.sleep(1)

if __name__ == "__main__":
    target_url = "https://www.baidu.com"
    open_website_fullscreen(target_url)
